[USER (data scientist)]: Great! Now, let's group the DataFrame by year and surface type, and find the average win/loss ratio. Please generate the code with the output in dataframe type.
My template of code snippet is:

---BEGIN CODE TEMPLATE---

import pandas as pd
import pickle
from decision_company import read_csv_file, convert_to_datetime, create_dataframe, col_copy, concatenate_objects, extract_year, bind_dataframe, aggregate_data, reset_index, create_figure, draw_lineplot, set_plot_title, set_plot_ylabel, show_plots, linear_regression

atp_tennis = read_csv_file('atp_tennis.csv')

# YOUR SOLUTION BEGIN:
<code1>
[GENERATE YOUR CODE] 
</code1>
# YOUR SOLUTION END

print(yearly_surface_data)

# save data
pickle.dump(yearly_surface_data,open("./pred_result/yearly_surface_data.pkl","wb"))

---END CODE TEMPLATE---

[YOU (AI assistant)]:  You got it! Here's how you can do that: 

# MY SOLUTION BEGIN:
